#pragma once

#include <iostream>
#include <memory>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include "InetAddr.hpp"
#include <cstring>
#include "Log.hpp"
#include "Mutex.hpp"

using namespace LogModule;
using namespace MutexModule;

class NoCopy
{
public:
    NoCopy(){}
    NoCopy(const NoCopy&)=delete;
    const NoCopy &operator=(const NoCopy&)=delete;
    ~NoCopy(){}
};

enum ExitCode
{
    OK=0,
    USAGE_ERR,
    SOCKET_ERR,
    BIND_ERR,
    LISTEN_ERR,
    CONNECT_ERR,
    FORK_ERR,
    OPEN_ERROR
};